
$(function() {
	$('#lucky').cycle({
		speed: 100,
		speedIn: 100,
		speedOut: 100,
		timeout: 100,
		pause: 1,
		autostopCount: 1,
		autostop: 1,
		delay: 1000,
		fx: 'shuffle'
	});
	
	$("#stop").click(function() {
		// alert("stop");
		$('#lucky').cycle('stop');
	});
	
	$("#num").click(function() {		
		var num = 50;
		
		// alert(num);
		$('#lucky').cycle({
			speed: 100,
			speedIn: 100,
			speedOut: 100,
			timeout: 100,
			pause: 1,
			autostopCount: num,
			autostop: 1,
			delay: 1000,
			fx: 'shuffle'
		});
	});
	
});